package com.itheima.myreflect2.Student.demo;

import java.util.concurrent.CountDownLatch;

/**
 * @program: Myset
 * @description:
 * @author: xuejingjing
 * @create: 2021-06-20 15:42
 **/
public class MonthThread extends Thread{

    private CountDownLatch countDownLatch;
    public MonthThread(CountDownLatch countDownLatch) {
        this.countDownLatch = countDownLatch;
    }


    public void run() {
       //1,等待

        try {
            countDownLatch.await();
        } catch (InterruptedException e) {
            e.printStackTrace();
        }

        // 2,收拾碗筷
        System.out.println("妈妈在收拾碗筷");
    }
}
